﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace NP.BPMReportPlatform.HR.Dto
{
    /// <summary>
    /// BPM审批配置维护 批量导入
    /// IsLabelingError：是否标注数据错误
    /// </summary>
    [ExcelImporter(IsLabelingError = true)]
    public class ImportApproveConfigInput
    {
        /// <summary>
        /// 所属流程
        /// </summary>
        [ImporterHeader(Name = "所属流程")]
        [Required(ErrorMessage = "所属流程不能为空")]
        public string ProcessName { get; set; }

        /// <summary>
        /// 职级
        /// </summary>
        [ImporterHeader(Name = "职级")]
        [Required(ErrorMessage = "职级不能为空")]
        public string Rank { get; set; }

        /// <summary>
        /// 归属分类
        /// </summary>
        [ImporterHeader(Name = "归属分类")]
        [Required(ErrorMessage = "归属分类不能为空")]
        public string CatalogName { get; set; }

        /// <summary>
        /// 一级审批人
        /// </summary>
        [ImporterHeader(Name = "一级审批人")]
        [Required(ErrorMessage = "一级审批人不能为空")]
        public string Approver1 { get; set; }

        /// <summary>
        /// 二级审批人
        /// </summary>
        [ImporterHeader(Name = "二级审批人")]
        [Required(ErrorMessage = "二级审批人不能为空")]
        public string Approver2 { get; set; }

        /// <summary>
        /// 三级审批人
        /// </summary>
        [ImporterHeader(Name = "三级审批人")]
        public string Approver3 { get; set; }

        /// <summary>
        /// 四级审批人
        /// </summary>
        [ImporterHeader(Name = "四级审批人")]
        public string Approver4 { get; set; }

        /// <summary>
        /// 五级审批人
        /// </summary>
        [ImporterHeader(Name = "五级审批人")]
        public string Approver5 { get; set; }

        /// <summary>
        /// 六级审批人
        /// </summary>
        [ImporterHeader(Name = "六级审批人")]
        public string Approver6 { get; set; }

        /// <summary>
        /// 七级审批人
        /// </summary>
        [ImporterHeader(Name = "七级审批人")]
        public string Approver7 { get; set; }

        /// <summary>
        /// 汇报线封顶
        /// </summary>
        [ImporterHeader(Name = "汇报线封顶")]
        [Required(ErrorMessage = "汇报线封顶不能为空")]
        public string ReportingLine { get; set; }
    }
}
